Advanced Data Visualizations
25 February, 2024
You already….
Please install and load the following packages
Access lecture slide from the course landing page
I am Ayush.
I am a researcher working at the intersection of data, law, development and economics.
I teach Data Science using R at Gokhale Institute of Politics and Economics
I am a RStudio (Posit) certified tidyverse Instructor.
I am a Researcher at Oxford Poverty and Human development Initiative (OPHI), at the University of Oxford.
Reach me
ayush.ap58@gmail.com
ayush.patel@gipe.ac.in
ggplot2annotate() function can be used for any kind of geometric objectannotate() function, the type of geom is specified firstx and y, xmin and xmax is used for coordinates of the rectanglealpha is used for?annotate() over here requires x and xend coordinatesggplot2, the axes are mapped automatically based on the datascale functions in ggplot2:
wt and mpgscale_y_continuous() allows you to set the range for the y-axislimits inside the scale_y_continuous() provides limits of the scaleNA is used to refer to the existing maximumNA, if you had to provide 40 as the limit for y-axisbreaks in the scale_y_continuous allows you to set what intervals the axis will havescale_colour_brewer() options are useful for plotting discrete values on your graphscale_colour_brewer helps in effcient mapping of discrete variablesscales package many scaling functions for visualizations